﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CobraCms.Core.Content.Utilities
{
    public class SearchCriteriaUtilities
    {
        public static ContentNodeSearchCriteira RootNodes()
        {
            return new ContentNodeSearchCriteira
            {
                IsRootNode = true
            };
        }

        public static ContentNodeSearchCriteira Children(string nodeId)
        {
            return new ContentNodeSearchCriteira
            {
                ParentNodeId = nodeId
            };
        }
    }
}
